<?php
/* Smarty version 3.1.29, created on 2017-06-29 16:43:44
  from "D:\amp\web\mvc_blog\app\admin\view\\Article\articleIndex.html" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_5954bdc0de3bf7_88875865',
  'file_dependency' => 
  array (
    'a247839634b87b83d7aeddff342c93cdb3b7317a' => 
    array (
      0 => 'D:\\amp\\web\\mvc_blog\\app\\admin\\view\\\\Article\\articleIndex.html',
      1 => 1498725818,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:Public/head.html' => 1,
    'file:Public/ghead.html' => 1,
    'file:Public/nav.html' => 1,
    'file:Public/footer.html' => 1,
  ),
),false)) {
function content_5954bdc0de3bf7_88875865 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_date_format')) require_once 'D:\\amp\\web\\mvc_blog\\public\\smarty\\plugins\\modifier.date_format.php';
?>

<?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:Public/head.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

<div class="wrapper">
    <!-- START HEADER -->
    
    <?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:Public/ghead.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

    <!-- END HEADER -->

    <!-- START MAIN -->
    <div id="main">
        <!-- START SIDEBAR -->
        
        <?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:Public/nav.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

        <!-- END SIDEBAR -->

        <!-- START PAGE -->
        <div id="page">
            <!-- start page title -->
            <div class="page-title">
                <div class="in">
                    <div class="titlebar">	<h2>博文管理</h2>	<p>博文列表</p></div>

                    <div class="clear"></div>
                </div>
            </div>
            <!-- end page title -->

            <!-- START CONTENT -->
            <div class="content">
                <div class="simplebox grid740" style="z-index: 720;">
                    <div class="titleh" style="z-index: 710;">
                        <h3>搜索</h3>
                    </div>
                    <div class="body" style="z-index: 690;">

                        <form id="form2" name="form2" method="post" action="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
?p=admin&m=Article&a=showList">
                            <input type="hidden" name="p" value="back"/>
                            <input type="hidden" name="m" value="article"/>
                            <div class="st-form-line" style="z-index: 680;">
                                <span class="st-labeltext">标题</span>
                                <input name="s_title" type="text" class="st-forminput" style="width:510px" value="<?php echo $_smarty_tpl->tpl_vars['s_title']->value;?>
">
                                <div class="clear" style="z-index: 670;"></div>
                            </div>
                            <div class="st-form-line" style="z-index: 640;">
                                <span class="st-labeltext">分类</span>
                                <select class="uniform" name="s_cat_id">
                                    <option value="0">任意</option>
                                   <?php
$_from = $_smarty_tpl->tpl_vars['tree']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_category_0_saved_item = isset($_smarty_tpl->tpl_vars['category']) ? $_smarty_tpl->tpl_vars['category'] : false;
$__foreach_category_0_saved_key = isset($_smarty_tpl->tpl_vars['k']) ? $_smarty_tpl->tpl_vars['k'] : false;
$_smarty_tpl->tpl_vars['category'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['category']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['k']->value => $_smarty_tpl->tpl_vars['category']->value) {
$_smarty_tpl->tpl_vars['category']->_loop = true;
$__foreach_category_0_saved_local_item = $_smarty_tpl->tpl_vars['category'];
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['category']->value['id'];?>
"<?php if ($_smarty_tpl->tpl_vars['s_cat_id']->value == $_smarty_tpl->tpl_vars['category']->value['id']) {?>selected="selected"<?php }?>><?php echo str_repeat('--',$_smarty_tpl->tpl_vars['category']->value['level']);
echo $_smarty_tpl->tpl_vars['category']->value['name'];?>
</option>
                                    <?php
$_smarty_tpl->tpl_vars['category'] = $__foreach_category_0_saved_local_item;
}
if ($__foreach_category_0_saved_item) {
$_smarty_tpl->tpl_vars['category'] = $__foreach_category_0_saved_item;
}
if ($__foreach_category_0_saved_key) {
$_smarty_tpl->tpl_vars['k'] = $__foreach_category_0_saved_key;
}
?>
                                    <!--<option value="1">科技1</option>-->
                                    <!--<option value="5">&#45;&#45;&#45;&#45;IT</option>-->
                                    <!--<option value="6">&#45;&#45;&#45;&#45;生物</option>-->
                                    <!--<option value="7">&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;鸟类</option>-->
                                    <!--<option value="2">武侠</option>-->
                                    <!--<option value="3">旅游</option>-->
                                    <!--<option value="4">美食</option>-->
                                    <!--<option value="8">&#45;&#45;&#45;&#45;湘菜</option>-->
                                    <!--<option value="11">&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;跳跳蛙</option>-->
                                    <!--<option value="12">&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;口味虾</option>-->
                                    <!--<option value="13">&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;臭豆腐</option>-->
                                    <!--<option value="9">&#45;&#45;&#45;&#45;粤菜</option>-->
                                    <!--<option value="14">&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;白切鸡</option>-->
                                    <!--<option value="15">&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;隆江猪脚</option>-->
                                    <!--<option value="10">&#45;&#45;&#45;&#45;川菜</option>-->
                                </select>
                                <div class="clear"></div>
                            </div>
                            <div class="st-form-line">
                                <span class="st-labeltext">状态</span>
                                <select class="uniform" name="s_status">
                                    <option value="">任意</option>
                                    <option value="1"<?php if ($_smarty_tpl->tpl_vars['s_status']->value == 1) {?>selected="selected"<?php }?>>草稿</option>
                                    <option value="2"<?php if ($_smarty_tpl->tpl_vars['s_status']->value == 2) {?>selected="selected"<?php }?>>公开</option>
                                    <option value="3"<?php if ($_smarty_tpl->tpl_vars['s_status']->value == 3) {?>selected="selected"<?php }?>>隐藏</option>
                                </select>
                                <div class="clear"></div>
                            </div>
                            <div class="button-box" style="z-index: 460;">
                                <input type="submit" name="button" id="button" value="提交" class="st-button">
                            </div>
                        </form>

                    </div>
                </div>

                <!-- START TABLE -->
                <div class="simplebox grid740">

                    <div class="titleh">
                        <h3>博文列表</h3>
                    </div>

                    <table id="myTable" class="tablesorter">
                        <thead>
                        <tr>
                            <th>#ID</th>
                            <th>分类</th>
                            <th>标题</th>
                            <th>发布日期</th>

                            <th>状态</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php
$_from = $_smarty_tpl->tpl_vars['article']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_row_1_saved_item = isset($_smarty_tpl->tpl_vars['row']) ? $_smarty_tpl->tpl_vars['row'] : false;
$__foreach_row_1_saved_key = isset($_smarty_tpl->tpl_vars['k']) ? $_smarty_tpl->tpl_vars['k'] : false;
$_smarty_tpl->tpl_vars['row'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['k'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['row']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['k']->value => $_smarty_tpl->tpl_vars['row']->value) {
$_smarty_tpl->tpl_vars['row']->_loop = true;
$__foreach_row_1_saved_local_item = $_smarty_tpl->tpl_vars['row'];
?>
                        <tr>
                            <td><?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
</td>
                            <td><?php echo $_smarty_tpl->tpl_vars['row']->value['c_name'];?>
</td>
                            <td><?php echo $_smarty_tpl->tpl_vars['row']->value['title'];?>
</td>
                            <td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['row']->value['pubtime'],'%Y-%m-%d %H-%M');?>
</td>
                            <td><?php if ($_smarty_tpl->tpl_vars['row']->value['status'] == 1) {?>草稿<?php } elseif ($_smarty_tpl->tpl_vars['row']->value['status'] == 2) {?>公开<?php } else { ?>隐藏<?php }?></td>

                            <td>
                                <a href="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
?p=admin&m=Article&a=showUpd&id=<?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
" >编辑</a>
                                <a href="<?php echo $_smarty_tpl->tpl_vars['url']->value;?>
?p=admin&m=Article&a=del&id=<?php echo $_smarty_tpl->tpl_vars['row']->value['id'];?>
" onClick="return confirm('是否确认删除');">删除</a>
                            </td>
                        </tr>
                        <?php
$_smarty_tpl->tpl_vars['row'] = $__foreach_row_1_saved_local_item;
}
if ($__foreach_row_1_saved_item) {
$_smarty_tpl->tpl_vars['row'] = $__foreach_row_1_saved_item;
}
if ($__foreach_row_1_saved_key) {
$_smarty_tpl->tpl_vars['k'] = $__foreach_row_1_saved_key;
}
?>
                        <!--<tr>-->
                            <!--<td>2</td>-->
                            <!--<td>口味蛙</td>-->
                            <!--<td>剁椒鱼头</td>-->
                            <!--<td>2017-03-27</td>-->
                            <!--<td>12</td>-->
                            <!--<td>100</td>-->
                            <!--<td>-->
                                <!--<a href="#" >编辑</a>-->
                                <!--<a href="#" onClick="return confirm('是否确认删除文章：口味蛙？');">删除</a>-->
                            <!--</td>-->
                        <!--</tr>-->
                        <!--<tr>-->
                            <!--<td>3</td>-->
                            <!--<td>口味蛙</td>-->
                            <!--<td>萝卜炖牛腩</td>-->
                            <!--<td>2017-03-27</td>-->
                            <!--<td>12</td>-->
                            <!--<td>100</td>-->
                            <!--<td>-->
                                <!--<a href="#" >编辑</a>-->
                                <!--<a href="#" onClick="return confirm('是否确认删除文章：口味蛙？');">删除</a>-->
                            <!--</td>-->
                        <!--</tr>-->
                        </tbody>
                    </table>
                    <ul class="pagination">
                        <?php echo $_smarty_tpl->tpl_vars['strPage']->value;?>

                        <!--<li><a href='#'>1</a></li>-->
                        <!--<li><a href='#'>2</a></li>-->
                        <!--<li><a href='#'>3</a></li>-->
                        <!--<li><a href='#'>4</a></li>-->
                        <!--<li><a href='#'>下一页</a></li>-->
                    </ul>
                </div>
                <!-- END TABLE -->
            </div>
            <!-- END CONTENT -->
        </div>
        <!-- END PAGE -->
        <div class="clear"></div>
    </div>
    <!-- END MAIN -->

    
    <?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:Public/footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
}
}
